﻿using System;
using System.Collections.Generic;
using System.Text;
using ATSModel;
using ATSIDAL;

namespace ATSBLL
{
    public class TCalIntermodulation : BaseService<TCalIntermodulationItem>
    {
        private static readonly ITCalIntermodulationItem dal = DALFactory.DataAccess.CreateTCalIntermodulation();
        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<TCalIntermodulationItem> GetIntermodulationItemByDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetIntermodulationItemByDT(starttime, stoptime);
        }
        public IList<TCalIntermodulationItem> GetIntermodulationItemBySN(String InstrumentID)
        {
            return dal.GetIntermodulationItemBySN(InstrumentID);
        }

        public IList<TCalIntermodulationItem> GetIntermodulationItem()
        {
            return dal.GetIntermodulationItem();
        }
        public IList<TCalIntermodulationItem> GetIntermodulationItemByDTAndSN(DateTime starttime, DateTime stoptime, string InstrumentID)
        {
            return dal.GetIntermodulationItemByDTAndSN(starttime,  stoptime, InstrumentID);
        }
    }
}
